home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ Jul 89 / W0092-Type Casting (Objec-Jul89 < prev    next >
Encoding:
Text File  |  1989-08-22  |  740 b   |  23 lines  |  [TEXT/GEOL]

  1. Item    9659636                         19-July-89        13:15
  2.  
  3. From:   LINS                            Lins, Chuck
  4.  
  5. To:     ARBOGAST                        Peat Marwick, Chris Arbogast
  6.  
  7. cc:     MACAPP.TECH$                    MACAPP Tech
  8.  
  9. Sub:    Type Casting (Objects)
  10.  
  11. Chris,
  12.  
  13. You may want to try returning your new object through a function instead as a
  14. VAR parameter to a procedure. For example, see the MacApp™ routine NewList.
  15. Though I must agree that type transfer/coercion should be a compile-time
  16. activity that simply informs the compiler to treat the given variable as some
  17. other type (including an object class). (This is the way Wirth's defined type
  18. transfer in Modula-2 and Oberon).
  19.  
  20. Chuck Lins
  21. Apple Computer, Inc.
  22.  
  23.